<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>编辑</title>
		<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" />
		<link href="../../kitAdmin/css/app.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="../../plugins/select2/dist/css/select2.min.css"/>
	</head>

	<body>
		<div class='kit-table'>
			<div style='margin:10px'>
				
		<form class='layui-form' action='' lay-filter='form-edit'>
			<input type='hidden' name='uniqueId'  data-link='{:uniqueId}' />
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐日期</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommendDate}' id='_recommendDate' name='recommendDate' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>被推荐人id</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:newStudentId}' id='_newStudentId' name='newStudentId' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>被推荐人英文名</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:newStudentName}' id='_newStudentName' name='newStudentName' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>被推荐人电话</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:newStudentPhone}' id='_newStudentPhone' name='newStudentPhone' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>被推荐人Zoom账号</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:newStudentZoomId}' id='_newStudentZoomId' name='newStudentZoomId' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐人id</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommenderId}' id='_recommenderId' name='recommenderId' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐人</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommenderName}' id='_recommenderName' name='recommenderName' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐人电话</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommenderPhone}' id='_recommenderPhone' name='recommenderPhone' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐人Zoom账号</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommenderZoomId}' id='_recommenderZoomId' name='recommenderZoomId' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>负责人id</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:fuzerenId}' id='_fuzerenId' name='fuzerenId' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>负责人</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:fuzeren}' id='_fuzeren' name='fuzeren' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐状态</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommendState}' id='_recommendState' name='recommendState' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐奖励（小时）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:recommendAward}' id='_recommendAward' name='recommendAward' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>发放奖励（小时）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:grantedAward}' id='_grantedAward' name='grantedAward' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>备注</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:remark}' id='_remark' name='remark' class='layui-input'>
					</div>
				</div>
			</div>
		</form>
			</div>
		</div>
		<script src="../../common/js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../static/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugins/jsviews/jsviews.js" type="text/javascript"></script>
		<script src="../../plugins/select2/dist/js/select2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var uid = getQueryVariable('uniqueId');
			jQuery(document).ready(function() {
				bindFormData();
			});
			var callback_save=function(){
				return $('.layui-form').serialize();
			}
			function bindFormData(){
				if(uid){
					$.ajax({
						url:baseUrl+'/recommendRecords/'+uid,
						type:'get',
						success:function(data){
							$.link(true, ".kit-table", data.data);
							$('select').select2().change();
						},
						error:function(){
							parent.layer.alert('系统或网络错误！');
						}
					});
				}
			}
		</script>
	</body>

</html>
